<?php
/** @var TCargoaapController $this */
/** @var TCargoaap $data */
?>
<div class="view">
                    
        <?php if (!empty($data->cap_descripcion)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cap_descripcion')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->cap_descripcion); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->uaa_id)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('uaa_id')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->uaa_id); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cap_inicio)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cap_inicio')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->cap_inicio, 'medium', 'medium'); ?>
            <br/>
                 <?php echo date('D, d M y H:i:s', strtotime($data->cap_inicio)); ?>
                            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cap_fin)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cap_fin')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->cap_fin, 'medium', 'medium'); ?>
            <br/>
                 <?php echo date('D, d M y H:i:s', strtotime($data->cap_fin)); ?>
                            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cap_grado)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cap_grado')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->cap_grado); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cap_ciudad)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cap_ciudad')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->cap_ciudad); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->est_id)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('est_id')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->est_id); ?>
            </div>
        </div>

        <?php endif; ?>
    </div>